import {requestDelete, requestGet, requestPost, requestPut} from "@/api";

export const getDeployerList = () => {
    return requestGet('/api/sm/deployers')
}

export const getDeployerById = (id:string) => {
    return requestGet('/api/sm/deployer/'+id)
}


export const saveDeployer = (data?:any) => {
    return requestPost("/api/sm/deployer",data)
}

export const updateDeployer = (data?:any) => {
    return requestPut("/api/sm/deployer",data)
}
export const deleteDeployer = (id:string) => {
    return requestDelete("/api/sm/deployer/"+id)
}

